﻿<?php
$image_on = ‘http://websiteanda.com/images/online.png‘;
$image_off = ‘http://websiteanda.com/images/offline.png‘;
$yahoo_id = ‘ID YM ANDA‘;
$status = intval(file_get_contents(‘http://opi.yahoo.com/online?u=’.$yahoo_id.’&m=t&t=1′));
if($status) {
$ymstatus = $image_on;
} else {
$ymstatus = $image_off;
}
header(‘Location:’.$ymstatus);
?>